package com.liangxy.news.api;

import com.liangxy.news.model.News;

import java.util.List;

/**
 * Response class for news list API
 */
public class NewsResponse {
    
    private int error_code;
    private String reason;
    private Result result;
    
    public int getErrorCode() {
        return error_code;
    }
    
    public void setErrorCode(int errorCode) {
        this.error_code = errorCode;
    }
    
    public String getReason() {
        return reason;
    }
    
    public void setReason(String reason) {
        this.reason = reason;
    }
    
    public Result getResult() {
        return result;
    }
    
    public void setResult(Result result) {
        this.result = result;
    }
    
    public static class Result {
        private String stat;
        private List<News> data;
        
        public String getStat() {
            return stat;
        }
        
        public void setStat(String stat) {
            this.stat = stat;
        }
        
        public List<News> getData() {
            return data;
        }
        
        public void setData(List<News> data) {
            this.data = data;
        }
    }
} 